Kanzi  3.9.7
Kanzi Engine API
kanzi::CoutLogger Class Reference

This logger class writes log messages to standard output. More...

#include <kanzi/core/log/cout_logger.hpp>

Inheritance diagram for kanzi::CoutLogger:
[legend]

Protected Member Functions

void writeOverride (LogLevel level, string_view levelName, string_view categoryName, string_view fileName, size_t lineNumber, string_view message) override
 See kanzi::AbstractLogger::writeOverride. More...
 

Additional Inherited Members

- Public Member Functions inherited from kanzi::AbstractLogger
void write (LogLevel level, string_view levelName, string_view categoryName, string_view fileName, size_t lineNumber, string_view message)
 Kanzi calls this function to store the message to the log. More...
 
virtual ~AbstractLogger ()
 Destructor. More...
 

Detailed Description

This logger class writes log messages to standard output.

Member Function Documentation

void kanzi::CoutLogger::writeOverride ( LogLevel  level,
string_view  levelName,
string_view  categoryName,
string_view  fileName,
size_t  lineNumber,
string_view  message 
)
overrideprotectedvirtual

See kanzi::AbstractLogger::writeOverride.

Every log message is prefixed with levelName and categoryName. The messages with level = LogLevelError are prefixed with fileName and lineNumber.

Parameters
levelThe log level of the message.
levelNameThe string representation of the log level.
categoryNameThe string representation of the log category.
fileNameThe name of the file from which the log message originated.
lineNumberThe number of the line in the file from which the log message originated.
messageThe message being written to the log.

Implements kanzi::AbstractLogger.


The documentation for this class was generated from the following file: